// 插件注册公共组件
// vue插件写法
import PageTools from '@/components/PageTools'
import UploadExcel from './UploadExcel'
import UploadImg from './UploadImg/index.vue'

const components = [PageTools, UploadExcel, UploadImg]

export default {

  install (vue) {
    // vue.component('PageTools', PageTools)
    components.forEach(cp => {
      // cp.name 作为批量注册组件的标签名
      vue.component(cp.name, cp)
    })
  }
}
